<?php

/**
 * This file is part of the People Of Walmart block for Moodle.
 * Copyright (C) 2009-2010 <anonymousmoodler@gmail.com>
 * 
 * The People Of Walmart block is distributed under the terms of the GNU
 * General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version. You should
 * have received a copy of the GNU General Public License along with the People
 * Of Walmart block. If not, see <http://www.gnu.org/licenses/>.
 */

?>
<center>
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right">
<?php echo get_string('number_of_thumbnails', 'block_peopleofwalmart'); ?>
</td>
<td>
<select name="number_of_thumbnails">
<?php

$number_of_thumbnails = isset($this->config->number_of_thumbnails)
    ? $this->config->number_of_thumbnails
    : $this->number_of_thumbnails;
for ($i = 1; $i <= 10; ++$i) {
    echo '<option value="'.$i.'"'.
        ($i == $number_of_thumbnails ? ' selected="selected"' : '').
        '>'.$i.'</option>';
}

?>
</select>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php echo get_string('display_captions_inline', 'block_peopleofwalmart'); ?>
</td>
<td>
<?php

$display_captions_inline = isset($this->config->display_captions_inline)
    ? $this->config->display_captions_inline
    : $this->display_captions_inline;
echo '<input type="checkbox" name="display_captions_inline" value="1"'.
    ($display_captions_inline == 1 ? ' checked="checked"' : '').
    ' />';

?>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php print_string('savechanges') ?>" />
</td>
</tr>
</table>
</center>